package com.bdqn.t382.answer;

public class Main {
    public static void main(String[] args)  {
        SimpleContainer container = new SimpleContainer();

        // 添加 Bean 到容器
        container.addBean(DataRepository.class);
        container.addBean(TestService.class);

        // 获取 Bean 并运行
        TestService service = container.getBean(TestService.class);
        service.run();
    }
}
